import '@/assets/main.css'

import router from '@/router'


import { createApp } from 'vue'
import App from '@/App.vue'

import store from '@/store'

// 全局守卫
import "@/permission"

import 'nprogress/nprogress.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router)

// 引用全局组件
app.use(store)

app.use(ElementPlus)


app.mount('#app')
